/*
 * @Author: LVGRAPE
 * @LastEditors: LVGRAPE
 */
#ifndef __DRV_SOFT_I2C_H_
#define __DRV_SOFT_I2C_H_

void soft_i2c_set_speed_100kHz(void);
void soft_i2c_set_speed_400kHz(void);
int8_t soft_i2c_scl_test(void);
int8_t soft_i2c_sda_test(void);
void soft_i2c_scan_device(void);
void drv_soft_i2c_init(void);
uint8_t soft_i2c_read(uint8_t slaveAddr, uint8_t regAddr, uint8_t *readBuffer, uint8_t numToRead);
uint8_t soft_i2c_write(uint8_t slaveAddr, uint8_t regAddr, uint8_t *writeBuffer, uint8_t numToWrite);

#endif
